f=open('12345678.txt','w',encoding='gbk')
f.write('测试')
f.close()